package org.nicocube.airain.app.client.ui;

import com.google.gwt.user.client.ui.DecoratedPopupPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.PopupPanel;

public class AirainMessager {
	PopupPanel popup;
	public AirainMessager() {
		popup = new DecoratedPopupPanel(true,true);
		popup.setAnimationEnabled(true);
		popup.hide();
		popup.setWidget(new HTML("",false));
	}
	
	public void hide() {
		popup.hide();
	}
	public void show(String t) {
		((HTML)popup.getWidget()).setHTML(t);
		popup.center();
	}
}
